Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.theme.jsf

Documentation

Contributions to the JSF implementation of NXThemes. Web-related features and resources are registered here.

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.theme.jsf">
  <documentation>
    Contributions to the JSF implementation of NXThemes.
    Web-related features and resources are registered here.
    @author Jean-Marc Orliaguet (jmo@chalmers.se)
  </documentation>

  <require>org.nuxeo.theme.core</require>

  <extension target="org.nuxeo.theme.services.ThemeService"
    point="template-engines">

    <template-engine name="jsf-facelets" title="JSF/Facelets"
      template-view="org.nuxeo.theme.jsf.JSFView" />

  </extension>


  <extension target="org.nuxeo.theme.services.ThemeService"
    point="negotiations">

    <negotiation object="engine" strategy="default">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.engine.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.engine.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.engine.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.engine.ViewId
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.engine.DefaultEngine
      </scheme>
    </negotiation>

    <negotiation object="mode" strategy="default">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.mode.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.mode.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.mode.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.mode.ViewId
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.mode.UnspecifiedMode
      </scheme>
    </negotiation>

    <negotiation object="theme" strategy="default">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.theme.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.theme.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.theme.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.theme.ViewId
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.theme.DefaultTheme
      </scheme>
    </negotiation>

    <negotiation object="perspective" strategy="default">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.ViewId
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.perspective.DefaultPerspective
      </scheme>
    </negotiation>

    <negotiation object="collection" strategy="default">
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.RequestParameter
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.CookieValue
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.RequestAttribute
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.ViewId
      </scheme>
      <scheme>
        org.nuxeo.theme.jsf.negotiation.collection.UnspecifiedCollection
      </scheme>
    </negotiation>

  </extension>


  <extension target="org.nuxeo.theme.services.ThemeService"
    point="standalone-filters">

    <standalone-filter name="write fragment tag" template-engine="jsf-facelets">
      <class>
        org.nuxeo.theme.jsf.filters.standalone.FragmentTag
      </class>
    </standalone-filter>

    <standalone-filter name="collect xmlns" template-engine="jsf-facelets">
      <class>
        org.nuxeo.theme.html.filters.standalone.XmlNamespaces
      </class>
    </standalone-filter>

    <standalone-filter name="control fragment visibility" template-engine="jsf-facelets">
      <class>
        org.nuxeo.theme.html.filters.standalone.FragmentVisibility
      </class>
    </standalone-filter>

    <standalone-filter name="set element name" template-engine="jsf-facelets">
      <class>
        org.nuxeo.theme.html.filters.standalone.ElementName
      </class>
    </standalone-filter>

  </extension>

  <extension target="org.nuxeo.theme.services.ThemeService"
    point="views">

    <view template-engine="jsf-facelets">
      <format-type>layout</format-type>
      <class>
        org.nuxeo.theme.html.filters.layout.DefaultLayoutView
      </class>
    </view>

    <view template-engine="jsf-facelets">
      <format-type>style</format-type>
      <class>
        org.nuxeo.theme.html.filters.style.DefaultStyleView
      </class>
    </view>

    <view name="theme view" template-engine="jsf-facelets">
      <element-type>theme</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/jsf/widgets/theme-view.xml</template>
      <resource>nxthemes.css</resource>
      <resource>autosuggest.css</resource>
    </view>

    <view name="page frame" template-engine="jsf-facelets">
      <element-type>page</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/jsf/widgets/page-frame.xml</template>
    </view>

    <view name="section frame" template-engine="jsf-facelets">
      <element-type>section</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/jsf/widgets/section-frame.xml</template>
    </view>

    <view name="cell frame" template-engine="jsf-facelets">
      <element-type>cell</element-type>
      <format-type>widget</format-type>
      <template>nxthemes/jsf/widgets/cell-frame.xml</template>
    </view>

    <view name="vertical menu" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <model-type>menu</model-type>
      <template>nxthemes/jsf/widgets/vertical-menu.xml</template>
    </view>

    <view name="horizontal tabs" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <model-type>menu</model-type>
      <template>
        nxthemes/jsf/widgets/horizontal-tabs.xml
      </template>
    </view>

    <view name="plain text" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <model-type>text</model-type>
      <icon>nxthemes/html/icons/plain-text.png</icon>
      <template>nxthemes/jsf/widgets/plain-text.xml</template>
    </view>

    <view name="plain html" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <model-type>html</model-type>
      <icon>nxthemes/html/icons/plain-html.png</icon>
      <template>nxthemes/jsf/widgets/plain-html.xml</template>
    </view>

    <view name="facelet region" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <model-type>region</model-type>
      <icon>nxthemes/jsf/icons/facelet-region.png</icon>
      <class>
        org.nuxeo.theme.jsf.filters.widgets.FaceletRegionView
      </class>
    </view>

    <!-- no style caching -->
    <view name="theme view" template-engine="jsf-facelets">
      <engine>default</engine>
      <element-type>theme</element-type>
      <mode>no-cache</mode>
      <format-type>widget</format-type>
      <template>nxthemes/jsf/widgets/theme-view-no-cache.xml</template>
      <resource>nxthemes.css</resource>
      <resource>autosuggest.css</resource>
    </view>


  </extension>

</component>